History command lists last commands entered by a user:

history

To clear history

history -c

File is usually set on Linux machines to store bash commands run and saved in `/home//.bash_history

.bash_history